package com.laint.mall.product.common.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 错误编码和错误信息的枚举类
 */
@Getter
public enum BizCodeEnum {

    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    VALID_EXCEPTION(10001,"参数格式异常");

    private final int code;
    private final String msg;

    BizCodeEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
}

